]> dgit.raspbian.org Git - gnome-shell.git/commit
slider: Ignore left/right scroll directions
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 22 Sep 2023 11:21:32 +0000 (13:21 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 22 Sep 2023 15:55:12 +0000 (17:55 +0200)
commit2baa298e391e8528cdcbd1d27c50342ed4b2432a
treecb9104f14a0e1a9c8fee0992310212310be2d79e
parent10b0e283e984bc01e90dcb5dcb480822dc06fb47
slider: Ignore left/right scroll directions

Both of these ended up with a "undefined" delta, which turned
the final value into 0 no matter the previous state.

While this was already fixed for touchpads in the previous commit
(by not forwarding emulated discrete events), this looks somewhat
out of place even for the mice that have left/right discrete scroll
actions (e.g. tilting the scroll wheel left or right).

Let these unhandled directions have a delta of 0, and focus on
vertical scroll for both smooth and discrete events.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2967>
js/ui/slider.js